package com.nhh.exception;

import lombok.Getter;

/**
 * User: Allen.qin
 * Date: 2018/9/4
 */
public class ServiceException extends RuntimeException {

    @Getter
    private String code;

    public ServiceException(String code, String message) {
        super(message);
        this.code = code;
    }

    public ServiceException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }
}
